import React from "react";
import {Center, Image} from "native-base";
import {Platform} from "react-native";

export const ShowOneImg = ({route}) => {
    return <Center>
        <Image
            source={{
                uri:
                    Platform.OS === 'android' ||
                    (Platform.Os === 'iOS' && Platform.Version > 14)
                        ? `${route.params.img}?imageView2/0/format/webp/interlace/1/q/1`
                        : `${route.params.img}`,
            }}
            fallbackSource={require('../../assets/error.webp')}
            alt="123"
            size="2xl"
            resizeMethod="resize"
        />
    </Center>
}